import request from "@/utils/request.js";

//获取班组列表信息
export const reqTeamsList = () => {
    return request({
        url:"/api/systeams/pages",
        method:"get",
        params:{
            page:1,
            size:100
        }
    })
}

//获取班次信息
export const reqClassesList = () => {
    return request({
        url:"/api/shifts/list",
        method:"get"
    })
}

//排班表增删改查
export const reqSchedulingList = (parameter) => {
    return request({
        url:"/shiftConfigurations/pages",
        method:"get",
        params:parameter
    })
}
export const reqSchedulingEdit = (data) => {
    return request({
        url:"/shiftConfigurations",
        method:"put",
        data:data
    })
}
export const reqSchedulingSave = (data) => {
    return request({
        url:"/shiftConfigurations",
        method:"post",
        data:data
    })
}
export const reqSchedulingDel = (id) => {
    return request({
        url:"/shiftConfigurations/" + id,
        method:"delete"
    })
}